home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / dirmgmt / checkl.arc / CHECKLOG.TXT < prev    next >
Text File  |  1989-03-21  |  2KB  |  54 lines

  1.           Using Check.com to alert users to low network disk space
  2.  
  3.    PC Magazine's Check.com is a useful program that returns various
  4. errorlevels for different parameters.  One of these parameters is free
  5. disk space.  With Netware 2.1+, the system supervisor can limit users'
  6. usage of file server disk space.  Unfortunately, this also limits the
  7. size of files they can print, as the temporary spooler files are charged
  8. to users' "account".
  9.    Until a future Netware version gives supervisors a way of excluding
  10. network printer spooler files from the disk space limitation, one must
  11. devise work-arounds.  One such work-around is to check the amount of
  12. diskspace remaining during login, warn the user if it falls too low, and
  13. present the user with alternative courses of action (such as moving files
  14. from network drives to local drives for storage).
  15.    Check.com for this purpose takes the parameter "diskspace".  The
  16. errorlevel returned corresponds to 16 kbyte blocks.  Thus an errorlevel
  17. of "C" (hexadecimal) corresponds to decimal 12, or 192 kbytes disk space
  18. for that user remaining.
  19.    Here is a sample batch file for checking diskspace at login.  The
  20. batch file should be called as the last command in all users' login
  21. scripts.
  22.  
  23.   echo off
  24.   check diskspace
  25.   if errorlevel C goto :ok
  26.   if errorlevel 0 goto :warning
  27.   goto :ok
  28.   :warning
  29.   echo Warning:  You have less than 200 kbytes of network disk space left
  30.   pause
  31.   task 5 Do you want to use a utility to free up needed disk space now?
  32.   if errorlevel 1 goto :nofree
  33.   if errorlevel 0 goto :free
  34.   :free
  35.   dc
  36.   :nofree
  37.   :ok
  38.  
  39.    Please note two other public domain programs used in this file,
  40. task.com and dc.com.  They are included in this archive, checklog.arc.
  41.    Finally, other programs, such as Paradox, write temporary files to
  42. disk as part of their normal operations.  In the case of Paradox, these
  43. files include lock files, and answer tables.  If the answer table is
  44. large, it could easily generate an error message (out of disk space) on a
  45. disk-space-limited network.  Thus the above batch file could be modified
  46. and included in the Paradox menu option to alert users to low disk space.
  47. Hopefully Novell will enhance Netware so supervisors can exclude volumes,
  48. directories, and even files from the disk space limitation count.
  49.  
  50.       -=rich adams=-
  51.       3/21/89 El Cerrito, California
  52.  
  53.  
  54.